invisiblize google (and other 'internal' types) in help
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 16 Feb 2005 19:10:49 +0000 (19:10 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 16 Feb 2005 19:10:49 +0000 (19:10 +0000)
gpsbabel/google.c
gpsbabel/vecs.c

index 22e17478c7b87eb427adfcee90df7bbafd5eb83b..8b99ff2b8a0443aafb0a19e64b599dbe8e1d3529 100644 (file)
@@ -167,7 +167,7 @@ google_rd_deinit(void)
 }
 
 ff_vecs_t google_vecs = {
-       ff_type_file,
+       ff_type_internal,
         { ff_cap_none, ff_cap_read, ff_cap_none},
        google_rd_init, 
        NULL,
index 662cbba01e9f2e974ca5794bd449cfb1aa59db34..83dbab31318600260c728af80a46f4a4aa478806 100644 (file)
@@ -556,7 +556,7 @@ disp_vecs(void)
 
        /* Normal vecs are easy; populate the first part of the array. */
        for (vec = vec_list; vec->vec; vec++, i++) {
-                       svp[i] = vec;
+               svp[i] = vec;
        }
        /* Walk the style list, parse the entries, dummy up a "normal" vec */
        for (svec = style_list; svec->name; svec++, i++)  {
@@ -571,7 +571,8 @@ disp_vecs(void)
        qsort(svp, vc, sizeof(*svp), alpha);
 
        for (i=0;i<vc;i++) {
-               printf(VEC_FMT, svp[i]->name, svp[i]->desc);
+               if ( svp[i]->vec->type != ff_type_internal ) 
+                       printf(VEC_FMT, svp[i]->name, svp[i]->desc);
                for (ap = svp[i]->vec->args; ap && ap->argstring; ap++) {
                        if ( !(ap->argtype & ARGTYPE_HIDDEN)) 
                                printf("          %-18.18s    %-.50s %s\n",